package com.example.golfwithfriends;

import com.golfwithfriends.controller.ParcourController;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class HoleActivity extends Activity {

	private TextView holeTitle = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_hole);
		
		holeTitle = (TextView) findViewById(R.id.HoleTitleTextView);
		int currentHole = ParcourController.getInstance().getCurrentHole();
		int totalHoles = ParcourController.getInstance().getTotalHoles();
		holeTitle.setText("Trou " + currentHole + " / " + totalHoles + " Par");
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.hole, menu);
		return true;
	}

}
